<?php /* Smarty version 2.6.16, created on 2013-09-10 02:35:26
         compiled from ../templates/default//modules/register/step4.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/registration.css"><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/register.js"></script><script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/ajax.js" type="text/javascript" ></script>'; ?>

<?php echo '
<script type="text/javascript">
function isSpace(e)                                                                   //Check for Blank spaces
{
	if(navigator.appName=="Microsoft Internet Explorer")
	{
		if(e.keyCode==32)	
		{
			return false;
		}
	}
	if(navigator.appName=="Netscape")
	{
		if(e.which==32)	
		{
			return false;
		}
	}
	return true;
}
</script>
'; ?>


<?php echo '
    <script type="text/javascript">
	   	
	$(document).ready(function(){
		$(\'#dateshow\').change(function(){			
			var val  =$("#day").val();			
			if(val == \'\' || val == \'undefined\'){
				$(\'#date\').text(\'\');
				$(\'#date\').text(\'please select Date\');
			}else{
					$(\'#date\').text(\'\');
			}
		});
	});		
	
		
	function showday(catid,year)
	{ 
	
		if(catid == \'\' || catid == \'undefined\'){
				$(\'#date\').text(\'\');
				$(\'#date\').text(\'please select Month\');
		}else{
			$(\'#date\').text(\'\');
			ajax.sendrequest("GET",SITEROOT + "/modules/register/date_calculatror.php",{catid:catid,year:year},"","dateshow");			
		}			
	}
	
	function showmonth(catid)
	{ 		
	
		if(catid == \'\' || catid == \'undefined\'){
			$(\'#date\').text(\'\');
			$(\'#date\').text(\'please select year\');
		}else{
			$(\'#date\').text(\'\');
			ajax.sendrequest("GET",SITEROOT + "/modules/register/monthshoe.php",{catid:catid},"","monthshow");
		}	
	}
	
	function showUrl(str)	
	{
		document.getElementById(\'urldiv\').style.display=\'block\';
		var replaced = str.replace(/ /g,\'_\');
		replaced = replaced.replace(/\'/g,\'_\');
		replaced = replaced.toLowerCase();
		document.getElementById(\'newURL\').value = SITEROOT+"/profile/"+replaced;
			
	}
	function allowCharAndNumbersOnly(e)                                               //Allows only characters to be entered    
	{
		if(navigator.appName=="Microsoft Internet Explorer")
		{
			if((e.keyCode >64 && e.keyCode < 91)||(e.keyCode >47 && e.keyCode < 58) || (e.keyCode >96 && e.keyCode<123) || e.keyCode==32 || e.keyCode==8 || e.keyCode==0)
			{}
			else
			{
				e.keyCode=" ";
				return false;
			}
		}
		else if(navigator.appName=="Netscape")
		{
			if((e.which >64 && e.which < 91) || (e.which >47 && e.which < 58)|| (e.which >96 && e.which<123) || e.which==0 || e.which==8 || e.which==32)
			{}
			else
				return false;
		}
		return true;
	}
	
    </script>
    
    

    '; ?>

    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<section class="inner_wrapper">
<section class="middle_portion">
	<h1 class="registr_head">registration</h1>
    <section class="regis_steps_breadcrum_wrapper">
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step1.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step2.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step3.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step4_ho.png"></section>
        <section class="lF"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/register_steps/registr_step5.png"></section>
        <section class="clear"></section>
    </section>    
    <form id="frmTradesmanAdd" name="frmTradesmanAdd" method="POST" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/register/step5/">
    <input type="hidden" id="tradesArray" name="tradesArray" value="<?php echo $this->_tpl_vars['tradesArray']; ?>
" />
    <input type="hidden" id="jobsArray" name="jobsArray" value="<?php echo $this->_tpl_vars['jobsArray']; ?>
" />
    <input type="hidden" id="workarea" name="workarea" value="<?php echo $_POST['workarea']; ?>
" />
    <input type="hidden" id="radius" name="radius" value="<?php echo $_POST['hidden_radius']; ?>
" />
    <input type="hidden" id="radiusdata" name="radiusdata" value="<?php echo $_POST['radiusdata']; ?>
" />  
<input type="hidden" id="state_id" name="state_id" value="<?php echo $this->_tpl_vars['state_id']; ?>
" />  	
    <input type="hidden" id="centerpt" name="centerpt" value="<?php echo $_POST['centerpt']; ?>
" />
    
    <section class="regist_form">

   <!-- <p>These details will be seen by Homeowners whose jobs you quote on.</p>-->
    	<dl>
        	<dt>Email</dt>
            <dd><input type="text" class="input"  id="email" name="email" value="<?php echo $_POST['email']; ?>
" /></dd>
            <section class="clear"></section>
        </dl>
        	<dl>
        	<dt>Mobile</dt>
            <dd><input type="text" class="input"  id="mobno" name="mobno" value="<?php echo $_POST['mobno']; ?>
" maxlength="15" /></dd>
            <section class="clear"></section>
        </dl>
         <section class="clear"></section>
        <dl>
        	<dt>Company Name</dt>
            <dd><input type="text" class="input"  id="companyname" name="companyname" value="<?php echo $_POST['companyname']; ?>
" maxlength="20" onchange="return showUrl(this.value);" onkeypress="return allowCharAndNumbersOnly(event);"  style="text-transform:lowercase;"></dd>
            <section class="clear"></section>
        </dl>
        <dl style="display:none;" id="urldiv">
        	<dt>Profile URL</dt>
            <dd><input type="text" class="input"  id="newURL" name="newURL" value="" ></dd>
            <section class="clear"></section>
        </dl>
        <section class="clear"></section>
    </section>
    <section class="regist_form">
    <h1>Personal Details</h1>
    	<dl>
        	<dt>Salutaion <span style="margin-left:95px;">First Name</span></dt>
            <dd>
            <section class="select_box_container">
          <select class="select Rmargin15" id="salutation" name="salutation">
            	<option value="Mr">Mr.</option>
                <option value="Ms">Ms.</option>
                <option value="Miss">Miss.</option>
            </select>
            </section>
            <section class="name_container"> 
            <input type="text" class="input2" id="firstname" name="firstname" value="<?php echo $_POST['firstname']; ?>
" maxlength="20" />
            <div htmlfor="firstname" generated="true" class="error" style="padding-left:150px;"></div>
            </section>
            </dd>
            <section class="clear"></section>
        </dl>
         <dl>
        	<dt>Last Name</dt>
            <dd><input type="text" class="input"  id="lastname" name="lastname" value="<?php echo $_POST['lastname']; ?>
"  maxlength="20"/></dd>
            <section class="clear"></section>
        </dl>
        <dl>
        	<dt>Postal code</dt>
            <dd>
            <input type="text" class="input"  id="postcode" name="postcode" <?php if ($_POST['workarea']): ?> value="<?php echo $_POST['workarea']; ?>
"  readonly="readonly"<?php else: ?> value="<?php echo $_POST['postcode']; ?>
" <?php endif; ?> maxlength="15" />
            </dd>
            <section class="clear"></section>
        </dl>
         <dl>
        	<dt>&nbsp;</dt>
            <dd>&nbsp;</dd>
            <section class="clear"></section>
        </dl>
        <section class="clear"></section>
      <dl>
        	<dt>Date of Birth</dt>
            <dd>
            <section class="lF">
                 <section class="select_box_container"> 
                  <select class="select" name="year" id="year"  onChange="showmonth(this.value)">
                    <option value="">Year</option>
                    <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['start'] = (int)$this->_tpl_vars['byearfrom'];
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['byearTo']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
if ($this->_sections['i']['start'] < 0)
    $this->_sections['i']['start'] = max($this->_sections['i']['step'] > 0 ? 0 : -1, $this->_sections['i']['loop'] + $this->_sections['i']['start']);
else
    $this->_sections['i']['start'] = min($this->_sections['i']['start'], $this->_sections['i']['step'] > 0 ? $this->_sections['i']['loop'] : $this->_sections['i']['loop']-1);
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = min(ceil(($this->_sections['i']['step'] > 0 ? $this->_sections['i']['loop'] - $this->_sections['i']['start'] : $this->_sections['i']['start']+1)/abs($this->_sections['i']['step'])), $this->_sections['i']['max']);
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                        <option value="<?php echo $this->_sections['i']['index']; ?>
" ><?php echo $this->_sections['i']['index']; ?>
</option> 
                    <?php endfor; endif; ?>               
                  </select>  
                 </section>   
                    
                 <section class="select_box_container"> 
                 <span id="monthshow">       
                 <select class="select Rmargin15" name="month" id="month" onChange="showday(this.value, document.getElementById('year').value)">               	 	
                    <option value="">Month</option>
                  </select>   
                  </span>
                 </section>
                                      
                 <section class="select_box_container"> 
                  <span id="dateshow">
                  <select class="select Rmargin15" name="day" id="day" >
                    <option value="">Day</option>                    
                  </select>  </section> 
                  </span>   
            	 </section>  
            </dd>
            <section class="clear"></section>
        </dl>
            <dl>
        	<dt>Gender</dt>
            <dd>
          		<select class="select Rmargin15" id="gender" name="gender">
                	<option value="">Select</option>
                    <option value="Male">Male</option>
                    <option value="Female">Female</option>
                </select>
            </dd>
            <section class="clear"></section>
        </dl>
        <section class="clear"></section>
    </section>
    <section class="regist_form">
    <h1>Account Details</h1>
    	<dl>
        	<dt>Choose A Password</dt>
            <dd><input type="password" class="input"  id="password" name="password" maxlength="20" onkeypress="return isSpace(event);"/></dd>
            <section class="clear"></section>
        </dl>
         <dl>
        	<dt>Confirm Password</dt>
            <dd><input type="password" class="input"  id="confpassword" name="confpassword" maxlength="20"  onkeypress="return isSpace(event);"/></dd>
            <section class="clear"></section>
        </dl>
        <section class="clear"></section>
    </section>
    <section class="regist_form">
    <h1>Do You Have Public Liability Insurance?</h1>
    	<dl>
        	<dt>&nbsp;</dt>
            <dd>
            	<section class="radio_bt_block">
                <input type="checkbox" name="agree" id="agree" >I agree to Getbids.com.au <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/terms-conditions/" target="_blank">User agreement</a> and <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/privacypolicy/" target="_blank">Privacy Policy </a>
                <div htmlfor="agree" generated="true" class="error"></div>
                </section>
                
            </dd>            
            <section class="clear"></section>            
        </dl>
        <section class="clear"></section>
    </section>
     <section><input type="submit" class="blue_btn margintp_bt rF" name="btnstep1" id="btnstep1" value="Next"></section>
      <section class="clear"></section>
     </form> 
</section>

</section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>